package converter.test.demo;

import converter.test.demo.spring.config.StartupControllerUrlPrinter;
import org.springframework.boot.SpringApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

@org.springframework.boot.autoconfigure.SpringBootApplication
public class SpringBootApplication {

    @Bean
    public StartupControllerUrlPrinter startupControllerUrlPrinter(RequestMappingHandlerMapping handlerMapping){
        return  new StartupControllerUrlPrinter(handlerMapping);
    }

    public static void main(String[] args) {
        SpringApplication.run(SpringBootApplication.class,args);
    }
}
